/*
 * @Author: sichuntian sichuntian@smartmappingtek.com
 * @Date: 2023-11-27 14:33:35
 * @LastEditors: sichuntian sichuntian@smartmappingtek.com
 * @LastEditTime: 2024-05-16 10:03:37
 * @Description:
 *
 */
const mongoose = require("mongoose")
const Schema = mongoose.Schema

// 路牌
var Sign = new Schema({
  id: { type: String, default: "" },
  name: { type: String, default: "" },
  belong: { type: String, default: "" },
  position: { type: String, default: "" },
  testPos: {
    type: Array,
    default: [],
  },
  createTime: Number,
})

// 矢量线
var vectorLine = new Schema({
  id: { type: String, default: "" },
  name: { type: String, default: "" },
  pos: {
    type: Array,
    default: [],
  },
  createTime: Number,
})
// 漫游路线
var routeLine = new Schema({
  id: { type: String, default: "" },
  name: { type: String, default: "" },
  pos: {
    type: Array,
    default: [],
  },
  createTime: Number,
})

const signModel = mongoose.model("signs", Sign)
const vectorLineModel = mongoose.model("vectorLines", vectorLine)
const routeLineModel = mongoose.model("routeLines", routeLine)

module.exports = { signModel, vectorLineModel, routeLineModel }
